package com.jzo2o.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.customer.model.domain.Account;
import com.jzo2o.customer.model.dto.request.BankAccountUpsertReqDTO;
import com.jzo2o.customer.model.dto.response.BankAccountResDTO;


/**
 * @Description AccountService
 * @Author dmx
 * @Date 2024-12-02
 */
public interface AccountService extends IService<Account> {

    /**
     * 新增银行账户
     * @param dto
     */
    void addWorkerBankAccount(BankAccountUpsertReqDTO dto);


    /**
     * 获取当前用户的银行账号
     * @return
     */
    BankAccountResDTO getAccountByServeProviderId();

    /**
     * 机构端--新增或更新银行账户信息
     * @param dto
     * @return
     */
    BankAccountResDTO saveAgencyBankAccount(BankAccountUpsertReqDTO dto);
}
